package ar.edu.uba.fi.jmit.monitorengine.backend.client.controller;

import ar.edu.uba.fi.jmit.monitorengine.backend.client.Monitorengine;

public class MenuController {

	private ReceivedMessagesController receivedMessagesController;
	
	private LoadedFilesController loadedFilesController;
	
	private LoadedVisualizersController loadedVisualizersController;
	
	private ReceiverStatsController receiverStatsController;
	
	private UploadFilesController uploadFilesController;
	
	public MenuController(Monitorengine monitorengine) {
		receivedMessagesController = new ReceivedMessagesController(monitorengine);
		loadedFilesController = new LoadedFilesController(monitorengine);
		loadedVisualizersController = new LoadedVisualizersController(monitorengine);
		receiverStatsController = new ReceiverStatsController(monitorengine);
		uploadFilesController = new UploadFilesController(monitorengine);
	}

	public void onReceivedMessagesLink() {
		receivedMessagesController.showRecivedMessages();
	}

	public void onLoadedFilesLink() {
		loadedFilesController.showLoadedFiles();
	}

	public void onVisualizersLink() {
		loadedVisualizersController.showLoadedVisualizers();
		
	}

	public void onReceiverStatsLink() {
		receiverStatsController.showReceiverStats();
		
	}
	
	public void onFileUploadLink() {
		uploadFilesController.show();	
	}
}
